﻿using System;
using System.Collections.Generic;
using System.Text;

namespace A_Modules.DecimalSample
{
    public class DecimalSample
    {
        public void test()
        {
            
            string tmpstr1 =
                decimal.Round(new decimal(45.525),2,MidpointRounding.AwayFromZero).ToString();

            string tmpstr2 =
                decimal.Round(decimal.Parse("45.525"), 2,MidpointRounding.AwayFromZero).ToString();

            string tmpstr4 =
                Decimal.Round(Decimal.Parse("45.525"), 2,MidpointRounding.AwayFromZero).ToString();

            //string tmpstr5 =
            //    Decimal.(Decimal.Parse("45.525"), 2).ToString();
            
        }
    }
}
